package cn.tedu.douguo.user.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 菜谱表
 * @TableName cms_recipe
 */
@TableName(value ="cms_recipe")
@Data
@Accessors(chain = true)
public class Recipe implements Serializable {
    /**
     * 菜谱id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 浏览量
     */
    @TableField(value = "page_view")
    private String pageView;

    /**
     * 收藏量
     */
    @TableField(value = "collection")
    private String collection;

    /**
     * 作者
     */
    @TableField(value = "author_id")
    private String authorId;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 简介
     */
    @TableField(value = "description")
    private String description;


    /**
     * 封面图片路径
     */
    @TableField(value = "image")
    private String image;

    /**
     * 发表日期
     */
    @TableField(value = "gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 修改日期
     */
    @TableField(value = "gmt_modified")
    private LocalDateTime gmtModified;

    /**
     * 关键字集合
     */
    @TableField(value = "keywords")
    private String keywords;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;
}